// Fill out your copyright notice in the Description page of Project Settings.


#include "SurveillanceControlWidget.h"

void USurveillanceControlWidget::SetCameraOffset(FVector Offset)
{
	if (!SurveillanceCameraManager)
		return;

	SurveillanceCameraManager->SetCameraOffset(Offset, CameraIndex);
}

void USurveillanceControlWidget::SetCameraRotation(FRotator Rotator)
{
	if (!SurveillanceCameraManager)
		return;

	SurveillanceCameraManager->SetCameraRotation(Rotator, CameraIndex);
}

void USurveillanceControlWidget::EnableDebug(bool Debug)
{
	if (!SurveillanceCameraManager)
		return;

	SurveillanceCameraManager->DebugCamera(Debug, CameraIndex);
}

void USurveillanceControlWidget::SetCameraGlobal(bool bGlobal)
{
	if (!SurveillanceCameraManager)
		return;

	SurveillanceCameraManager->SetCameraGlobal(bGlobal, CameraIndex);
}

void USurveillanceControlWidget::SetCameraActive(bool bActive)
{
	if (!SurveillanceCameraManager)
		return;

	SurveillanceCameraManager->SetCameraActive(bActive, CameraIndex);
}

void USurveillanceControlWidget::SetCameraResolution(int32 Resolution)
{
	if (!SurveillanceCameraManager)
		return;

	SurveillanceCameraManager->SetCameraResolution(Resolution, CameraIndex);
}

void USurveillanceControlWidget::SetCameraFocalLength(float FocalLength)
{
	if (!SurveillanceCameraManager)
		return;

	SurveillanceCameraManager->SetCameraFocalLength(FocalLength, CameraIndex);
}

